<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Ganado extends CI_Model {
	protected $t_inv;

	function __construct() {
		parent::__construct();
		$this->t_inv = 'inventario_ganado';
	}

	function get_inv_ganado()
	{
		$query = $this->db->get('inventario_ganado');
		return $query;
	}

	function record_ganado() {
        return $this->db->count_all($this->t_inv);
    }
}